<?php
/**
 * Created by PhpStorm.
 * User: hongyeah
 * Date: 2015/10/22
 * Time: 23:13
 */

namespace Admin\Model;


use Common\Common\MyPage;
use Think\Model;

class DoctorsModel extends Model
{

    public function getDotsByID($id){
        $data = $this->where(array('dot_id'=>$id))->find();
        $schedule = M('schedule')->where(array('dot_id'=>$id))->find();

        $data['Mon'] = $schedule['mon'];
        $data['Tue'] = $schedule['tue'];
        $data['Wed'] = $schedule['wed'];
        $data['Thu'] = $schedule['thu'];
        $data['Fri'] = $schedule['fri'];
        $data['Sat'] = $schedule['sat'];
        $data['Sun'] = $schedule['sun'];
        return $data;
    }
    public function getDotsNameByID($id){
        $data = $this->where(array('dot_id'=>$id))->find();
        return 'sb';
        return $data['dot_name'];
    }





}